package IC.AST;

import java.util.LinkedList;

public class Library extends ASTNode
{
	private LinkedList<LibraryMethod> _methods;
	private String _libName;
	
	public Object Visit(Visitor visitor) { return visitor.Visit(this); }
	
	public Library(String classID, Interval interval, LinkedList<LibraryMethod> methods)
	{
		super(interval);
		_libName = classID;
		_methods = (methods == null) ? new LinkedList<LibraryMethod>() : methods;
		for (LibraryMethod method : _methods)
			GiveBirth(method);
	}
	
	public LinkedList<LibraryMethod> GetListOfMethods() { return _methods; }
	public String GetLibName() { return _libName; } 

}
